//
//  MyCommend.m
//  LearnObjectiveC
//
//  Created by client on 2017/9/9.
//  Copyright © 2017年 吴可高. All rights reserved.
//

#import "MyCommend.h"
#import "Receiver.h"

@implementation MyCommend
@synthesize receiver;

-(void)setReceiver:(Receiver *)newReceiver
{
    receiver = newReceiver;
}

-(Receiver *)receiver
{
    return receiver;
}

-(void)commendWithReceiver:(Receiver *)newReceiver
{
    receiver = newReceiver;
}

-(void)exe
{
    [receiver action];
}

@end
